3.3.74 \(\int \frac {\cos ^7(x)}{(a-a \sin ^2(x))^2} \, dx\) [274]

Optimal. Leaf size=18 \[ \frac {\sin (x)}{a^2}-\frac {\sin ^3(x)}{3 a^2} \]

[Out]

sin(x)/a^2-1/3*sin(x)^3/a^2

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 18, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {3254, 2713} \begin {gather*} \frac {\sin (x)}{a^2}-\frac {\sin ^3(x)}{3 a^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Cos[x]^7/(a - a*Sin[x]^2)^2,x]

[Out]

Sin[x]/a^2 - Sin[x]^3/(3*a^2)

Rule 2713

Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Dist[-d^(-1), Subst[Int[Expand[(1 - x^2)^((n - 1)/2), x], x], x
, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]

Rule 3254

Int[(u_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> Dist[a^p, Int[ActivateTrig[u*cos[e + f*x
]^(2*p)], x], x] /; FreeQ[{a, b, e, f, p}, x] && EqQ[a + b, 0] && IntegerQ[p]

Rubi steps

\begin {align*} \int \frac {\cos ^7(x)}{\left (a-a \sin ^2(x)\right )^2} \, dx &=\frac {\int \cos ^3(x) \, dx}{a^2}\\ &=-\frac {\text {Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (x)\right )}{a^2}\\ &=\frac {\sin (x)}{a^2}-\frac {\sin ^3(x)}{3 a^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 19, normalized size = 1.06 \begin {gather*} \frac {\frac {3 \sin (x)}{4}+\frac {1}{12} \sin (3 x)}{a^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Cos[x]^7/(a - a*Sin[x]^2)^2,x]

[Out]

((3*Sin[x])/4 + Sin[3*x]/12)/a^2

________________________________________________________________________________________

Maple [A]
time = 0.09, size = 14, normalized size = 0.78

method result size
default \(\frac {-\frac {\left (\sin ^{3}\left (x \right )\right )}{3}+\sin \left (x \right )}{a^{2}}\) \(14\)
risch \(\frac {3 \sin \left (x \right )}{4 a^{2}}+\frac {\sin \left (3 x \right )}{12 a^{2}}\) \(18\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(x)^7/(a-a*sin(x)^2)^2,x,method=_RETURNVERBOSE)

[Out]

1/a^2*(-1/3*sin(x)^3+sin(x))

________________________________________________________________________________________

Maxima [A]
time = 0.28, size = 14, normalized size = 0.78 \begin {gather*} -\frac {\sin \left (x\right )^{3} - 3 \, \sin \left (x\right )}{3 \, a^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)^7/(a-a*sin(x)^2)^2,x, algorithm="maxima")

[Out]

-1/3*(sin(x)^3 - 3*sin(x))/a^2

________________________________________________________________________________________

Fricas [A]
time = 0.38, size = 13, normalized size = 0.72 \begin {gather*} \frac {{\left (\cos \left (x\right )^{2} + 2\right )} \sin \left (x\right )}{3 \, a^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)^7/(a-a*sin(x)^2)^2,x, algorithm="fricas")

[Out]

1/3*(cos(x)^2 + 2)*sin(x)/a^2

________________________________________________________________________________________

Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 144 vs. \(2 (15) = 30\).
time = 15.19, size = 144, normalized size = 8.00 \begin {gather*} \frac {6 \tan ^{5}{\left (\frac {x}{2} \right )}}{3 a^{2} \tan ^{6}{\left (\frac {x}{2} \right )} + 9 a^{2} \tan ^{4}{\left (\frac {x}{2} \right )} + 9 a^{2} \tan ^{2}{\left (\frac {x}{2} \right )} + 3 a^{2}} + \frac {4 \tan ^{3}{\left (\frac {x}{2} \right )}}{3 a^{2} \tan ^{6}{\left (\frac {x}{2} \right )} + 9 a^{2} \tan ^{4}{\left (\frac {x}{2} \right )} + 9 a^{2} \tan ^{2}{\left (\frac {x}{2} \right )} + 3 a^{2}} + \frac {6 \tan {\left (\frac {x}{2} \right )}}{3 a^{2} \tan ^{6}{\left (\frac {x}{2} \right )} + 9 a^{2} \tan ^{4}{\left (\frac {x}{2} \right )} + 9 a^{2} \tan ^{2}{\left (\frac {x}{2} \right )} + 3 a^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)**7/(a-a*sin(x)**2)**2,x)

[Out]

6*tan(x/2)**5/(3*a**2*tan(x/2)**6 + 9*a**2*tan(x/2)**4 + 9*a**2*tan(x/2)**2 + 3*a**2) + 4*tan(x/2)**3/(3*a**2*
tan(x/2)**6 + 9*a**2*tan(x/2)**4 + 9*a**2*tan(x/2)**2 + 3*a**2) + 6*tan(x/2)/(3*a**2*tan(x/2)**6 + 9*a**2*tan(
x/2)**4 + 9*a**2*tan(x/2)**2 + 3*a**2)

________________________________________________________________________________________

Giac [A]
time = 0.44, size = 14, normalized size = 0.78 \begin {gather*} -\frac {\sin \left (x\right )^{3} - 3 \, \sin \left (x\right )}{3 \, a^{2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)^7/(a-a*sin(x)^2)^2,x, algorithm="giac")

[Out]

-1/3*(sin(x)^3 - 3*sin(x))/a^2

________________________________________________________________________________________

Mupad [B]
time = 0.04, size = 16, normalized size = 0.89 \begin {gather*} \frac {3\,\sin \left (x\right )-{\sin \left (x\right )}^3}{3\,a^2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(x)^7/(a - a*sin(x)^2)^2,x)

[Out]

(3*sin(x) - sin(x)^3)/(3*a^2)

________________________________________________________________________________________